package com.example.foobar.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.business.service.DyCommentService;
import com.example.foobar.dao.service.DyCommentDaoService;
import com.example.foobar.entity.DyComment;
import com.example.foobar.entity.DyVideo;
import com.example.foobar.param.DyCommentPageParam;
import com.example.foobar.vo.DyCommentQueryVo;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class DyCommentServiceImpl implements DyCommentService {

    @Autowired
    DyCommentDaoService dyCommentDaoService;

    @Override
    public boolean saveDyComment(DyComment dyComment) {
        return dyCommentDaoService.saveDyComment(dyComment);
    }

    @Override
    public boolean updateDyComment(DyComment dyComment) {
        return dyCommentDaoService.updateDyComment(dyComment);
    }

    @Override
    public boolean deleteDyComment(Long id) {
        return dyCommentDaoService.deleteDyComment(id);
    }

    @Override
    public DyComment getById(Long id) {
        return dyCommentDaoService.getById(id);
    }

    @Override
    public Paging<DyCommentQueryVo> getDyCommentPageList(DyCommentPageParam dyCommentPageParam) {
        return dyCommentDaoService.getDyCommentPageList(dyCommentPageParam);
    }

    @Override
    public List<DyComment> list(LambdaQueryWrapper<DyComment> dyVideoLambdaQueryWrapper) {
        return dyCommentDaoService.list(dyVideoLambdaQueryWrapper);
    }
}
